<?php

/**

 * Created by lihong.

 * Date: 2017/4/24

 * Time: 13:42

 */

    if (!defined('LEGAL_MARK')) {

        die('非法操作a');

    }

    if(isLogin()){

        if(!empty($_GET['id'])){

            $id = (int)html_trim($_GET['id']);

            if(!$id){

                showMsgAndLocation('参数非法','index.php?'.ADMIN_MARK.'&c=about');

            }

            $sql = 'delete from `about` where `id` = '.$id;

            $res = hq_query($con,$sql);

            if($res){

                get_html($con);

                showMsgAndLocation('删除成功','index.php?' . ADMIN_MARK . '&c=about');

            }else{

                showMsgAndLocation('删除失败','index.php?' . ADMIN_MARK . '&c=about');

            }



        }else{

            die("非法操作");

        }

    }else{

        showMsgAndLocation('请先登录','index.php?'.ADMIN_MARK.'&c=login');

    }

?>





